<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title></title>
	<link href="../../../js/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="../../../css/footer.css" />
	<link rel="stylesheet" type="text/css" href="../../../css/activity_detail.css" />
			<link rel="stylesheet" type="text/css" href="../../../css/commodity_details.css"/>

	
	<style type="text/css">
		/*修改底部字体颜色*/

		.foot:nth-child(2) {
			color: #e83023;
		}
	</style>
	<script src="../../../js/flexible.min.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>
	<div id="wrap">
		<div id="main">
			<div id="header">
				<a id="headImg" href="./activity.html"><img class="headImg" src="../../../images/12.png"/></a>
				<p id="headTitle">促销活动详情页</p>
			</div>
			<div id="content">
					<div class="seller_wap">
						<div class="pic">
							<img id="shopDetailsPic" src="../../../images/coalltion/mianbao.jpg"/>
							<p id="sign">赠送消费额的100倍积分</p>
						</div>
						<div style="background-color: #FFFFFF;">
						<p style="margin-bottom: 0; margin-top: 0.069444rem;margin-left: 0.277777rem;" id="acticeName">活动名称：<span></span></p>
						<p style="margin-bottom: 0; margin-top: 0.069444rem;margin-left: 0.277777rem;" id="add">所在区域/地址：<span></span></p>
						<p style="margin-bottom: 0; margin-top: 0.069444rem;margin-left: 0.277777rem;" id="shopTel">电话: <a></a></p>
						<p style="margin-bottom: 0; margin-top: 0.069444rem;margin-left: 0.277777rem;" id="time">活动时间: <span></span></p>
						</div>
					</div>
				</div>
		</div>
	</div>
</body>
<script src="../../../js/jquery-2.2.3.min.js"></script>
<script src="../../../js/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script>
	$().ready(function () {
		var saId = getQueryString("saId");
		$.ajax({
			url: "http://47.104.13.109/mall-service/saapply/search",
			type: "GET",
			data: {
				saId: saId
			},
			success: function (data) {
				console.log(data);
				var saId = data.saId;
				$("#shopDetailsPic").attr('src',data.saPicture) ;
				document.getElementById('sign').innerHTML = "接口没有积分";
						$("#shopName span").html(data.siName);
						$("#acticeName span").html(data.saContent);
						$("#add span").html(data.saCityName+"/"+data.saAreaName);
						$("#shopTel a").html("接口暂时没有电话");
						$("#time span").html(data.saBeginDate+"--"+data.saEndDate);
			},
			error: function (e) {
				console.log('根据saId获取活动详情出错', e)
			}
		});

		// 获取活动列表页面传递过来的参数
		function getQueryString(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if (r != null) return unescape(r[2]);
			return null;
		}
	});
</script>

</html>